<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
   <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
   <style type="text/css">
  .blue{
    font-size: 20;
    color: red;
  }
  .inputctrl {
     border:none;
     border-bottom: solid 1px blue;
  }
</style>
<script type="text/javascript" src="js/jquery/js/jquery-1.6.2.min.js"></script>
<script type="text/javascript">
  $(document).ready(function (){
	  $("a").click(function(event){
		  alert("aaaaa");
		  event.preventDefault();
	  });
	  
	  $("#orderlist").click(function(){
		  alert("a");
	  });
	  $("#orderlist > li:first").next().addClass("blue");
	  $("#orderlist").find("li").each(function(i){
		  $(this).html($(this).html()+"BAM"+i);
	  });
	  $("#reset").click(function(){
		  $("form > input").addClass("inputctrl");
	   });
	  
	  $("li").not(":has(ul)").css("border-bottom","solid 1px red");
	 // $("li").not(":has(ul)").css("border", "1px solid black");
  });
</script>
</head>
<body>
<h2>Hello World!</h2>
 <a href="http://www.baidu.com">百度</a>
  <ol id="orderlist">
     <li>a</li>
        <ul>1</ul>
        <ul>1</ul>
        <ul>1</ul>
        <ul>1</ul>
     <li>b</li>
     <li>c</li>
     <li>d</li>
     <li>e</li>
     <li>f</li>
   
     
  </ol>
  
  <form action="#">
    a: <input type="text"/>
    b: <input type="text"/>
    c: <input type="text"/>
    <input type="reset">
  </form>
  <form action="#">
    a: <input type="text"/>
    b: <input type="text"/>
    c: <input type="text"/>
    <input type="button" id="reset">
  </form>
</body>
 
</html>
